<template>
  <div class="page has-navbar" v-nav="{title: '公告', showBackButton: true}">
    <div class="page-content padding-top">
        <item class="item-icon-right" v-for="item in noticeList" @click.native="$router.forward('/notice/'+item.noticeId)">{{item.notice.noticeTitle}}<i class="icon ion-ios-arrow-right" style="color: #DDD;"></i></item>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        noticeList:[]
      }
    },
    created(){
      var _this = this;
      axios.get(baseUrl+'/controller/getNoticeList',{params:{
          marketId:sess.get('userSession').marketId,
          noticeState:1,
        }
      })
      .then(function(res){
        _this.noticeList = res.data.result
      })
    },
    methods: {

    }
  }
</script>
